package com.dd.ms.storage.web.pojo.domain;

import com.dd.ms.common.pojo.annotation.Explanation;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/6/23 1:02
 * @Description TencentCos属性配置 @ConfigurationProperties支持将外部配置文件（如 application.yml）中的属性批量绑定到 Java Bean
 *              Account:Jin-COS
 */
@Data
@Component
@ConfigurationProperties(prefix = "tencent.cos")
public class CosProperties {
    @Explanation("云API密钥SecretId")
    private String secretId;
    @Explanation("云API密钥SecretKey")
    private String secretKey;
    @Explanation("存储桶地域（如ap-beijing）")
    private String region;
    @Explanation("存储桶名称")
    private String bucketName;
    @Explanation(value = "访问基础URL", example = "https://{bucket}.cos.{region}.myqcloud.com）")
    private String baseUrl;
}